package com.jinlejia.erp.utils;

/**
 * Created by Administrator on 2016/8/31 0031.
 */
public class RecommendState {
    public static String getStateStr(String state ){
        String str = "";
        switch (Integer.parseInt(state)){
            case 0:
                str="推荐界定中";
                break;
            case 1:
                str="推荐有效";
                break;
            case 2:
                str="推荐无效";
                break;
            case 3:
                str="带访界定中";
                break;
            case 4:
                str="带访有效";
                break;
            case 5:
                str="带访无效";
                break;
            case 6:
                str="认购有效";
                break;
            case 7:
                str="签约有效";
                break;
            case -1:
                str="保护期失效";
                break;
            case 8:
                str="已退房";
                break;
            case 9:
                str="复访界定中";
                break;
            case 10:
                str="复访有效";
                break;
            case 11:
                str="复访无效";
                break;
            default:
                break;
        }
        return str;
    }

    public static String getStateType(String state ){
        String str = "";
        switch (Integer.parseInt(state)){
            case 0:
                str="推荐申请";
                break;
            case 1:
                str="推荐申请";
                break;
            case 2:
                str="推荐申请";
                break;
            case 3:
                str="带访申请";
                break;
            case 4:
                str="带访申请";
                break;
            case 5:
                str="带访申请";
                break;
            case 6:
                str="认购申请";
                break;
            case 7:
                str="成交申请";
                break;
            case -1:
                str="保护期失效";
                break;
            case 8:
                str="已退房";
                break;
            default:
                break;
        }
        return str;
    }

}
